package com.lh.mybatisuse.unit;

import com.lh.mybatisuse.model.InPutParam.OutBaseInParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * TO DO
 *
 * @quther lianghao
 * @Date 2021/1/27
 */
@Component
public class SendBaseMQ {
//    @Autowired
//    private AmqpTemplate rabbitTemplate;
//    @Autowired
//    Gson gson;

//    @Qualifier("getBaseQueueEnum")
//    @Autowired
//    private QueueEnum queueEnum;

    /**
     * 发送到RabbitMQ
     *
     * @param outBaseInParam 发送数据
     * @return 是否发送成功
     */
    public boolean sendToOutBaseMQ(OutBaseInParam outBaseInParam) {
        boolean sendSign = false;
//        this.rabbitTemplate.convertAndSend(queueEnum.getQueueName(), gson.toJson(outBaseInParam));
//        sendSign = true;
        return sendSign;
    }

    //    correctQUEUE
    public boolean sendToOutCorrectMQ(OutBaseInParam outBaseInParam) {
        boolean sendSign = false;
//        this.rabbitTemplate.convertAndSend("correctQUEUE", gson.toJson(outBaseInParam));
//        sendSign = true;
        return sendSign;
    }

}
